<?php
namespace App;

use Illuminate\Database\Eloquent\Model;

class BookUser extends Model {
    protected $table = 'book_user';

    protected $casts = [
        'keywords' => 'array',
    ];

    public function book() {
        return $this->hasOne('App\Book', 'id', 'book_id');
    }

    public function qius() {
        return $this->hasMany('App\Qiu');
    }
}